import request from '@/utils/request'

// 查询商品描述列表
export function listDesc(query) {
  return request({
    url: '/manager/desc/list',
    method: 'get',
    params: query
  })
}

// 查询商品描述详细
export function getDesc(goodsId) {
  return request({
    url: '/manager/desc/' + goodsId,
    method: 'get'
  })
}

// 新增商品描述
export function addDesc(data) {
  return request({
    url: '/manager/desc',
    method: 'post',
    data: data
  })
}

// 修改商品描述
export function updateDesc(data) {
  return request({
    url: '/manager/desc',
    method: 'put',
    data: data
  })
}

// 删除商品描述
export function delDesc(goodsId) {
  return request({
    url: '/manager/desc/' + goodsId,
    method: 'delete'
  })
}
